package xyz.hubery.stream;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;

public interface Sink {

    /**
     * 接收处理完的订单
     * @return
     */
    @Input("completed-orders-in")
    MessageChannel completedOrdersInChannel();


    /**
     * 接收成交记录
     * @return
     */
    @Input("exchange-trades-in")
    MessageChannel exchangeTradesInChannel();

    /**
     * 撤销订单
     * @return
     */
    @Input("cancel-order-in")
    MessageChannel cancelOrderInChannel();

}
